package com.library.entity;

import java.sql.Timestamp;

public class Book {
    private int id;
    private String title;
    private String author;
    private String publisher;
    private Timestamp publishDate;
    private int status; // 0-可借阅，1-已借出
    private String location;

    public Book() {}

    public Book(int id, String title, String author, String publisher, Timestamp publishDate, int status, String location) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.publisher = publisher;
        this.publishDate = publishDate;
        this.status = status;
        this.location = location;
    }

    // Getters and Setters
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getAuthor() { return author; }
    public void setAuthor(String author) { this.author = author; }
    public String getPublisher() { return publisher; }
    public void setPublisher(String publisher) { this.publisher = publisher; }
    public Timestamp getPublishDate() { return publishDate; }
    public void setPublishDate(Timestamp publishDate) { this.publishDate = publishDate; }
    public int getStatus() { return status; }
    public void setStatus(int status) { this.status = status; }
    public String getLocation() { return location; }
    public void setLocation(String location) { this.location = location; }
}    